/*
 * @Author: Null
 * @Date: 2021-12-30 11:56:17
 * @Description: 正文内容样式
 */

// 辅助边框
.borderRed {
  border: solid $border-width-1 $test-color;
}

.borderGreen {
  border: solid $border-width-1 $color-success;
}

// 辅助背景
.bgPink {
  background: $test-color-bg;
}

// 一级标题
.#{$prefix}-f1-title {
  font-size: $font-text-16;
  color: $color-text-main;
  font-weight: 800;
}

// 二级标题
.#{$prefix}-f2-title {
  font-size: $font-text-15;
  color: $color-text-main;
  font-weight: 600;
}

// 三级标题

.#{$prefix}-f3-title {
  font-size: $font-text-14;
  color: $color-text-main;
  font-weight: 500;
}

// 正文
.#{$prefix}-content {
  font-size: $font-text-14;
  color: $color-text-normal;
}

.#{$prefix}-content-12 {
  font-size: $font-text-12;
  color: $color-text-normal;
}

// 副标题,描述文字
.#{$prefix}-subContent {
  font-size: $font-text-14;
  color: $color-text-sub;
}

// placeholder
.#{$prefix}-placeholder {
  font-size: $font-text-12;
  color: $color-text-placehoder;
}

.#{$prefix}-bS-box {
  box-sizing: border-box;
}

.#{$prefix}-bR-5 {
  border-radius: 0.3125rem;
}

.#{$prefix}-bR-10 {
  border-radius: 0.625rem;
}

.#{$prefix}-bR-16 {
  border-radius: 1rem;
}

.#{$prefix}-container-h350 {
  width: 100%;
  height: 350px;
}

.#{$prefix}-container-h350w350 {
  width: 350px;
  height: 350px;
}

.#{$prefix}-container-h200w200 {
  width: 350px;
  height: 350px;
}

.pointer {
  cursor: pointer;
}

.scrollX {
  $scrollbar-px: 8px;
  $scrollbar-bg: #dddddd;
  $scrollbar-footBg: rgba(245, 245, 245, 0.1); // #f5f5f5
  overflow-x: auto;

  &:hover {
    cursor: pointer;

    &::-webkit-scrollbar {
      height: $scrollbar-px;
      width: $scrollbar-px;
    }

    &::-webkit-scrollbar-thumb {
      border-radius: 4px;
      background-color: rgb(221, 221, 221);
    }
  }

  &::-webkit-scrollbar {
    height: 0px;
  }

  &::-webkit-scrollbar-track {
    border-radius: 4px;
    background-color: #fff;
  }
}

/* scroll样式 */
.scrollX-noHover {
  $scrollbar-px: 8px;
  $scrollbar-bg: #dddddd;
  $scrollbar-footBg: rgba(245, 245, 245, 0.1); // #f5f5f5
  overflow-x: auto;
  cursor: pointer;

  &::-webkit-scrollbar {
    height: $scrollbar-px;
    width: $scrollbar-px;
  }

  &::-webkit-scrollbar-thumb {
    border-radius: 4px;
    background-color: rgb(221, 221, 221);
  }

  &::-webkit-scrollbar-track {
    border-radius: 4px;
    background-color: #fff;
  }
}

/* icon 按钮样式 */
.dk-icon-btn {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;

  &:hover {
    background: rgb(246, 246, 246);
  }
}

/* 省略文本 */
.text-ellipsis {
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.text-ellipsis-1 {
  text-overflow: -o-ellipsis-lastline;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.text-ellipsis-2 {
  text-overflow: -o-ellipsis-lastline;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}


// font-awasome图标的公共样式
.faicon-box {
  font-size: 14px;
  width: 20px;
  height: 20px;
  text-align: center;
}

// 一级标题 粗体 ，右边距4px
.#{$prefix}-first-title {
  @extend .dk-f1-title;
  @extend .dk-ml-4;
}

// 注释文本
.#{$prefix}-subText-12 {
  @extend .dk-placeholder;
}

.#{$prefix}-subText-14 {
  @extend .dk-placeholder;
}

// 禁止文本选择复制
.forbid-select-text {
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  -khtml-user-select: none;
  user-select: none;
}


.colorRed {
  color: $color-danger;
}

.#{$prefix}-grid-4 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  row-gap: 10px;
  column-gap: 10px;
}

.#{$prefix}-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  column-gap: 10px;
}

// 提示
.#{$prefix}-tips-num {
  max-width: 30px;
  max-height: 24px;
  padding: 2px;
  border-radius: 50%;
  background-color: $color-danger;
  font-size: 12px;
  color: #fff;
}

.#{$prefix}-header-search-container {
  background-color: #fff;
  padding: 10px;
}

.dk-danger-text {
  color: $color-danger;
}

.login-company {
  &-icon {
    width: 58px;
    height: 40px;
    background-color: #f5f7fa;
    color: #909399;
    border: 1px solid #dcdfe6;
  }
}

.sidebar-padding {
  padding: 0 .625rem 0 1.1875rem !important;
}